<?php

/**
 * This is the model class for table "tagrem_company_content_context".
 */
require_once(dirname(__FILE__).'/base/ContentContextBase.php');
class ContentContext extends ContentContextBase
{

    public function relations() {
        return array(
            'contentType' => array(self::BELONGS_TO, 'ContentType','content_type_id'),
        );
    }
    
    /**
    * URL of the context
    * 
    * @param array $params URL parameters
    * @return string
    */
    public function getUrl($params) {
        /*print_r($params); die();*/
        return url($this->route, $params);
    }
}